package sctu.edu.java.year2016.team01.lishuai.day20160601.chapter9_3;

/**
 * Created by 李大帅 on 2016/6/1.
 */
public class All {

    public void f(Fly a) {
        final Fly finalA = a;
        a=new Fly() {
            @Override
            public void fly() {
                finalA.fly();
            }
        };

        a.fly();
    }


}
